package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预约对象 reservations
 * 
 * @author guiye
 * @date 2023-08-29
 */
public class Reservations extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long reservationId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 场地ID */
    @Excel(name = "场地ID")
    private Long courtId;

    /** 预约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reservationDate;

    /** 时间段 */
    @Excel(name = "时间段")
    private String reservationTimeSlot;

    /** 预约定金 */
    @Excel(name = "预约定金")
    private Long reservationDeposit;

    /** 预约人数 */
    @Excel(name = "预约人数")
    private Long reservationNum;

    /** 预约状态 */
    @Excel(name = "预约状态")
    private Long reservationStatus;

    public void setReservationId(Long reservationId) 
    {
        this.reservationId = reservationId;
    }

    public Long getReservationId() 
    {
        return reservationId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCourtId(Long courtId) 
    {
        this.courtId = courtId;
    }

    public Long getCourtId() 
    {
        return courtId;
    }
    public void setReservationDate(Date reservationDate) 
    {
        this.reservationDate = reservationDate;
    }

    public Date getReservationDate() 
    {
        return reservationDate;
    }
    public void setReservationTimeSlot(String reservationTimeSlot) 
    {
        this.reservationTimeSlot = reservationTimeSlot;
    }

    public String getReservationTimeSlot() 
    {
        return reservationTimeSlot;
    }
    public void setReservationDeposit(Long reservationDeposit) 
    {
        this.reservationDeposit = reservationDeposit;
    }

    public Long getReservationDeposit() 
    {
        return reservationDeposit;
    }
    public void setReservationNum(Long reservationNum) 
    {
        this.reservationNum = reservationNum;
    }

    public Long getReservationNum() 
    {
        return reservationNum;
    }
    public void setReservationStatus(Long reservationStatus) 
    {
        this.reservationStatus = reservationStatus;
    }

    public Long getReservationStatus() 
    {
        return reservationStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("reservationId", getReservationId())
            .append("userId", getUserId())
            .append("courtId", getCourtId())
            .append("reservationDate", getReservationDate())
            .append("reservationTimeSlot", getReservationTimeSlot())
            .append("reservationDeposit", getReservationDeposit())
            .append("reservationNum", getReservationNum())
            .append("reservationStatus", getReservationStatus())
            .toString();
    }
}
